.class Les/z7;
.super Les/v7;
.source "ResourceBackgroundTarget.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Les/v7<",
        "Ljava/lang/Integer;",
        ">;"
    }
.end annotation


# direct methods
.method constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Les/v7;-><init>()V

    return-void
.end method

.method private static a(Les/s7;Lcom/esfile/screen/recorder/media/util/y;)Landroid/graphics/Bitmap;
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Les/s7<",
            "Ljava/lang/Integer;",
            ">;",
            "Lcom/esfile/screen/recorder/media/util/y;",
            ")",
            "Landroid/graphics/Bitmap;"
        }
    .end annotation

    .line 3
    iget-object v0, p0, Les/s7;->b:Ljava/lang/Object;

    check-cast v0, Ljava/lang/Integer;

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    invoke-static {v0}, Lcom/esfile/screen/recorder/media/util/e;->a(I)Lcom/esfile/screen/recorder/media/util/y;

    move-result-object v0

    .line 4
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/media/util/y;->b()I

    move-result v1

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/util/y;->b()I

    move-result v2

    invoke-static {v1, v2}, Ljava/lang/Math;->min(II)I

    move-result v1

    .line 5
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/media/util/y;->a()I

    move-result p1

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/util/y;->a()I

    move-result v0

    invoke-static {p1, v0}, Ljava/lang/Math;->min(II)I

    move-result p1

    .line 6
    sget-object v0, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    invoke-static {v1, p1, v0}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 7
    new-instance v2, Landroid/graphics/Canvas;

    invoke-direct {v2, v0}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V

    .line 8
    invoke-static {}, Lcom/esfile/screen/recorder/media/d;->a()Landroid/content/Context;

    move-result-object v3

    invoke-virtual {v3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    iget-object p0, p0, Les/s7;->b:Ljava/lang/Object;

    check-cast p0, Ljava/lang/Integer;

    invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I

    move-result p0

    invoke-virtual {v3, p0}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object p0

    const/4 v3, 0x0

    .line 9
    invoke-virtual {p0, v3, v3, v1, p1}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 10
    invoke-virtual {p0, v2}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V

    return-object v0
.end method


# virtual methods
.method a(ILcom/esfile/screen/recorder/media/util/y;)Z
    .locals 1

    .line 1
    iget-object v0, p0, Les/v7;->a:Les/s7;

    invoke-static {v0, p2}, Les/z7;->a(Les/s7;Lcom/esfile/screen/recorder/media/util/y;)Landroid/graphics/Bitmap;

    move-result-object p2

    const/4 v0, 0x1

    .line 2
    invoke-static {p1, p2, v0}, Lcom/esfile/screen/recorder/media/glutils/b;->a(ILandroid/graphics/Bitmap;Z)Z

    move-result p1

    return p1
.end method

.method public d()V
    .locals 0

    .line 1
    invoke-super {p0}, Les/v7;->d()V

    return-void
.end method
